package com.wx.tgp.designpattern.FactoryModePattern.SimpleFactory;

/**
 * 加法运算类
 */
public class OperationSum extends Operation {

    public double number1;
    public double number2;
    public OperationSum(double num1,double num2){
        this.number1 = num1;
        this.number2 = num2;
    }

    @Override
    public double getResult() {
        return number1+number2;
    }
}
